﻿@*

SystemInfo Widget:
显示业务系统信息
需要参数：BusinessSystem.ID
可选参数：SiteID
Model对象：

*@

@model Wicresoft.UnifyShow.Portal.BusinessInfo
@{
    Layout = "~/Views/Widget/Widget.cshtml";
}

@section divselect{
    'div.div_Mask_sysinfo'
}

@section preloadcallback{

    $.ajax({
        type: "post",
        url: "@Url.Action(Model.TargetAction, Model.TargetController)",
        data: "@Model.BuildRequestParam()",
        dataType: "@Model.AjaxDataType",
        success: function (msg) {
            jQuery('div.div_Mask_sysinfo').hideLoading();
            $("#vendorinfo").text(msg.VendorInfo);
            $("#sysinfo").text(msg.SystemInfo);
            $("#finainfo").text(msg.FinanceInfo);
        }
    });

}


@if (Model.LazyLoad)
{   
    <div class="div_Mask_sysinfo" style="width:300px">
        <p>
            <span>系统信息：</span>
            <span id="sysinfo"></span>
        </p>
        <p>
            <span>供应商信息：</span>
            <span id="vendorinfo"></span>
        </p>
        <p>
            <span>财务信息：</span>
            <span id="finainfo"></span>
        </p>
    </div>
}
else
{
    <div style="width:300px">
        <p>
            <span>系统信息：</span>
            <span id="sysinfo">@Model.SystemInfo</span>
        </p>
        <p>
            <span>供应商信息：</span>
            <span id="vendorinfo">@Model.VendorInfo</span>
        </p>
        <p>
            <span>财务信息：</span>
            <span id="finainfo">@Model.FinanceInfo</span>
        </p>
    </div>
}